(Info-find-index-name): Search for a function definition with a return type.
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Jul 2002 18:19:43 +0000 (18:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Jul 2002 18:19:43 +0000 (18:19 +0000)
lisp/info.el

index f95cd8bf7b641267a815b28b1c5de1aa6683458d..07304eabb052720289c7868746c9116673c6ea3d 100644 (file)
@@ -1939,6 +1939,10 @@ Give a blank topic name to go to the Index node itself."
     (if (or (re-search-forward (format
                                "[a-zA-Z]+: %s\\( \\|$\\)"
                                (regexp-quote name)) nil t)
+           ;; Find a function definition with a return type.
+           (re-search-forward (format
+                                "[a-zA-Z]+: [a-zA-Z0-9_]+ %s\\( \\|$\\)"
+                                (regexp-quote name)) nil t)
            (search-forward (format "`%s'" name) nil t)
            (and (string-match "\\`.*\\( (.*)\\)\\'" name)
                 (search-forward